package com.zhentao.config;

import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;

public class ApplicationInit extends AbstractAnnotationConfigDispatcherServletInitializer {
    @Override
    protected Class<?>[] getRootConfigClasses() {
        Class[] classes = new Class[]{SpringConfig.class};
        return classes;
    }

    @Override
    protected Class<?>[] getServletConfigClasses() {
        Class[]classes = new Class[]{SpringConfig.class};
        return classes;
    }

    @Override
    protected String[] getServletMappings() {
        String[]strs = new String[]{"/"};
        return strs;
    }
}
